package com.yuneec.droneservice.request;

/**
 * Created by zd.zhang on 2017/9/11.
 */

public abstract class IRequest {
    public static final boolean IS_BIGENDIAN = false;
    private final int id;

    public IRequest(int id) {
        this.id = id;
    }

    public final int ids() {
        return id;
    }

    public abstract boolean hasReply();

    public abstract boolean parseReply(IResponseHandler irh, OnRequestListener listener);

    public abstract int port();

    public abstract byte[] toRawData();
}
